//
//  HomeCourseView.h
//  TeacherNet
//
//  Created by slz on 2017/11/7.
//  Copyright © 2017年 bnsr. All rights reserved.
//

#import <UIKit/UIKit.h>

@protocol HomeCourseViewDelegate<NSObject>
- (void)headerViewDidClickMoreCourse;
- (void)headerViewDidClickCourseWithCourseId:(NSString *)courseId andCuorseName:(NSString *)courseName;
- (void)tableViewDidClickCourseId:(NSString *)courseId;
- (void)tableSectionHeaderViewClickWithTag:(NSInteger)tag;//tag 0 推荐  1 最热 2 最新
@end

@interface HomeCourseTableHeaderView : UIView
@property (nonatomic,strong) NSArray *titleArr;
@property (nonatomic,strong) NSMutableArray *labelArr;
@property (nonatomic,strong) UIView *labelBackView;
@property (nonatomic,weak) id <HomeCourseViewDelegate>delegate;
-(void)updateWithTitleArr:(NSArray *)titleArr;
@end

@interface HomeCourseView : UIView<UITableViewDelegate,UITableViewDataSource>
@property (nonatomic,strong) HomeCourseTableHeaderView *headerView;
@property (nonatomic,strong) YWTableView *tableView;
@property (nonatomic,strong) NSArray *recommendArr;
@property (nonatomic,strong) NSArray *hotArr;
@property (nonatomic,strong) NSArray *bestArr;
@property (nonatomic,weak) id <HomeCourseViewDelegate>delegate;
- (void)beginRefresh;
- (void)endRefresh;
@end


